<template>
  <div class="container">
    <div class="topBg">
      <!-- {{ props }} -->
      <nut-image :src="getAssetsFile(props.myBg)" fit="contain" />
    </div>
  </div>
</template>

<script setup lang="ts">
import { getAssetsFile } from "@/utils/pub-use";
const props = defineProps<{ myBg: string }>();
</script>

<style lang="scss" scoped>
.container {
  .topBg {
    width: 100%;
    height: 306px;
    overflow: hidden;
  }
}
</style>
